package cn.xiongxf.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.xiongxf.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Shop extends BaseDomain {
    @Excel(name = "店铺名称",orderNum = "1",width = 10)
    private String name;
    @Excel(name = "店铺座机",orderNum = "2",width = 15)
    private String tel;
    @Excel(name = "入驻时间",orderNum = "3",width = 15,exportFormat = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();
    // 店铺状态：待审核【1】 ，审核通过，待激活【2】，激活成功【3】，审核失败->驳回【4】
    @Excel(name = "店铺状态",orderNum = "4",width = 10)
    private Integer state = 1;
    @Excel(name = "店铺地址",orderNum = "5",width = 20)
    private String address;
    @Excel(name = "店铺logo",orderNum = "6",width = 20)
    private String logo;
    private Long admin_id;
    // 关联对象 - 店铺管理员对象admin
    private Employee admin;
}
